package com.cxb.demotest.dao.mapper_one;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cxb.demotest.dao.entity.NucleicAcidTestResultDO;
import java.math.BigDecimal;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * @author Xbao
 * @description
 * @date 2022/9/20 16:25
 */
@Repository
public interface NucleicAcidTestResultMapper extends BaseMapper<NucleicAcidTestResultDO> {

  List<NucleicAcidTestResultDO> pageLists();

  /**
   * 批量根据id更新结果中count字段
   * @param list
   */
  void batchUpdate(List<NucleicAcidTestResultDO> list);

  /**
   * 查询区域核酸各维度汇总数量
   * @param planId
   * @return
   */
  Map<String,BigDecimal> queryCountByPlanId(@Param("planId") String planId);
}
